﻿using OpenTK.Mathematics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

namespace Core.ECS.Systems
{
    public struct Ray
    {

        private Vector3 m_Origin;

        private Vector3 m_Direction;
        public Vector3 Origin
        {
            get
            {
                return m_Origin;
            }
            set
            {
                m_Origin = value;
            }
        }

        public Vector3 Direction
        {
            get
            {
                return m_Direction;
            }
            set
            {
                m_Direction = value.Normalized();
            }
        }
    }
}
